<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LQ
  Date: 2021/5/30
  Time: 8:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>预览</title>
    <link type="text/css" rel="stylesheet" href="/css/preview.css">
</head>
<body>
<div>
    <jsp:include page="main.jsp"/>
</div>

<div>
    <h2>${requestScope.article.articleName}</h2>
    <h6>发布于${requestScope.article.articleInsertTime}</h6>
    <h6>类别：${requestScope.category}&nbsp;/&nbsp;${requestScope.commentNum}条评论&nbsp;/&nbsp;${requestScope.article.browseNum}浏览</h6>
    <button class="tag">#${requestScope.article.articleTag}</button>
    <hr>
    <p>${requestScope.article.articleContent}</p>
    <hr>
    <c:forEach items="${requestScope.commentList}" var="comment">
        <h3>${comment.user.userName}</h3>
        <h6>${comment.commentInsertTime}</h6>
        <h3>${comment.commentContent}</h3>
        <hr>
    </c:forEach>

</div>
</body>
</html>
